]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
automountManager: Remove unused volume queue
authorSebastian Keller <skeller@gnome.org>
Tue, 19 Jan 2021 20:12:49 +0000 (21:12 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 19 Jan 2021 20:55:11 +0000 (20:55 +0000)
This is some leftover from code that was used to keep track of volumes
added/removed while the screen was locked before the move to a
components system in 2a800e4c. All that the remaining code does is
filter devices from an empty list.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1579>

js/ui/components/automountManager.js

index e50ae8e1d56f48d2234cc94b35f15b977c373542..5f0a8aad503172c1b4d396ee2f542f99c001a9b9 100644 (file)
@@ -19,7 +19,6 @@ var AUTORUN_EXPIRE_TIMEOUT_SECS = 10;
 var AutomountManager = class {
     constructor() {
         this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA });
-        this._volumeQueue = [];
         this._activeOperations = new Map();
         this._session = new GnomeSession.SessionManager();
         this._session.connectSignal('InhibitorAdded',
@@ -220,8 +219,6 @@ var AutomountManager = class {
             GLib.source_remove(volume._allowAutorunExpireId);
             delete volume._allowAutorunExpireId;
         }
-        this._volumeQueue =
-            this._volumeQueue.filter(element => element != volume);
     }
 
     _reaskPassword(volume) {